package com.leaves.javamall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leaves.common.utils.PageUtils;
import com.leaves.javamall.product.entity.BrandEntity;
import com.leaves.javamall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author leaves
 * @email lxhu.work@gmail.com
 * @date 2020-08-10 16:47:20
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveDetails(CategoryBrandRelationEntity categoryBrandRelation);

    void updateBrandDetails(Long brandId, String name);

    void updateCategoryDetails(String name, Long catId);

    List<BrandEntity> getBrandsByCatId(Long catId);
}

